package com.allin.mall.common.es.annotation;

import com.allin.mall.common.es.EnableImportSelector;
import org.springframework.boot.autoconfigure.AutoConfigurationPackage;
import org.springframework.context.annotation.Import;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Import(EnableImportSelector.class)
@Documented
@AutoConfigurationPackage
public @interface EnableElasticsearch {

    String ENABLED_OVERRIDE_PROPERTY = "mall.enableElasticsearch";

}
